package com.abc.entity;

public class User {
    /** 主键 */
    private String id;

    /** 用户名 */
    private String username;

    /** 真实姓名 */
    private String realname;

    /** 密码 */
    private String password;

    /** 性别 */
    private String sex;

    /** 年龄 */
    private Long age;

    /** 手机号 */
    private String phone;

    /** 用户类型 */
    // 管理员(0)、注册用户(1)、游客(2)
    private String userType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", realname='" + realname + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", userType='" + userType + '\'' +
                '}';
    }

    public User(String id, String username, String realname, String password, String sex, Long age, String phone, String userType) {
        this.id = id;
        this.username = username;
        this.realname = realname;
        this.password = password;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.userType = userType;
    }

    public User() {}
}
